package one;

public class Door {
    private String name;
    private Boolean closed;

    public Door(String name, Boolean closed) {
        this.name = name;
        this.closed = closed;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getClosed() {
        return closed;
    }

    public void setClosed(Boolean closed) {
        this.closed = closed;
    }

    @Override
    public String toString() {
        return "Door{" +
                "name='" + name + '\'' +
                ", closed=" + closed +
                '}';
    }
}
